package com.ruoyi.yey.bill;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.yey.bill.model.AppBillSelectModel;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

@Mapper
public interface BillMapper extends BaseMapper<BillEntity> {
    /**
     * 分页+模糊查询
     * @param page
     * @param searchVo
     * @return
     */
//    Page<Map> findBySearchVo( @Param("searchVo") BillEntity searchVo);

    List<Map> findBySearchVo(@Param("searchVo") BillEntity searchVo);

    int updateBillStatus(int id);

    int updateBillPicStatus(int id);

    List<AppBillSelectModel> findAllByParentId(@Param("parentId") int parentId);
}
